package com.ganbo.stock.task;

import com.ganbo.stock.service.impl.FundStockLastHistoryServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 更新当日股票池数据，并发送消息通知
 *
 * @Author: ganbo
 * @Date: 2019/12/2 19:31
 */
@Component
public class TodayStockPoolUpdateTask {

    @Autowired
    FundStockLastHistoryServiceImpl fundStockLastHistoryServiceImpl;

//    @Async
//    @Scheduled(cron = "0/5 * * * * ?")  //每5秒执行一次
    public void todayStockPoolUpdateTask() {
        fundStockLastHistoryServiceImpl.analyseTodayStockPool();
    }


}
